PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Fractal / Nested Spiral / Halfbreak - Lucid and Hypnotize.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.280 |
| 8 | fDecay=0.955 |
| 9 | fVideoEchoZoom=1.193 |
| 10 | fVideoEchoAlpha=1.000 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=2 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=1 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=1 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.020 |
| 26 | fWaveScale=0.012 |
| 27 | fWaveSmoothing=0.900 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.750 |
| 30 | fModWaveAlphaEnd=0.950 |
| 31 | fWarpAnimSpeed=0.010 |
| 32 | fWarpScale=100.000 |
| 33 | fZoomExponent=0.92178 |
| 34 | fShader=0.400 |
| 35 | zoom=0.99010 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.500 |
| 45 | wave_g=0.400 |
| 46 | wave_b=0.300 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.005 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.000 |
| 55 | ib_r=0.000 |
| 56 | ib_g=0.000 |
| 57 | ib_b=0.000 |
| 58 | ib_a=1.000 |
| 59 | nMotionVectorsX=32.000 |
| 60 | nMotionVectorsY=24.000 |
| 61 | mv_dx=0.020 |
| 62 | mv_dy=-0.020 |
| 63 | mv_l=1.000 |
| 64 | mv_r=0.490 |
| 65 | mv_g=0.480 |
| 66 | mv_b=0.300 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=0 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=1.00000 |
| 96 | wavecode_1_smoothing=0.50000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=0 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=1.00000 |
| 109 | wavecode_2_smoothing=0.50000 |
| 110 | wavecode_2_r=1.000 |
| 111 | wavecode_2_g=1.000 |
| 112 | wavecode_2_b=1.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=0 |
| 118 | wavecode_3_bUseDots=0 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=1 |
| 128 | shapecode_0_sides=4 |
| 129 | shapecode_0_additive=0 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=1 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=1.67089 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=0.94248 |
| 138 | shapecode_0_tex_zoom=0.53426 |
| 139 | shapecode_0_r=1.000 |
| 140 | shapecode_0_g=1.000 |
| 141 | shapecode_0_b=1.000 |
| 142 | shapecode_0_a=1.000 |
| 143 | shapecode_0_r2=1.000 |
| 144 | shapecode_0_g2=1.000 |
| 145 | shapecode_0_b2=1.000 |
| 146 | shapecode_0_a2=1.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=1.000 |
| 150 | shapecode_0_border_a=0.170 |
| 151 | shape_0_per_frame1=flux=q5*9; |
| 152 | shape_0_per_frame2=fluxs=max(flux,0); |
| 153 | shape_0_per_frame3=fluxs=min(fluxs,1); |
| 154 | shape_0_per_frame4=advflux=(q3*fluxs) + (-q3 * (1-fluxs)); |
| 155 | shape_0_per_frame5=adv=adv+advflux; |
| 156 | shape_0_per_frame6=advs=adv/256; |
| 157 | shape_0_per_frame7= |
| 158 | shape_0_per_frame8= |
| 159 | shape_0_per_frame9=ang=advs; |
| 160 | shape_0_per_frame10=rad=1.671 + q3/25 |
| 161 | shapecode_1_enabled=0 |
| 162 | shapecode_1_sides=3 |
| 163 | shapecode_1_additive=0 |
| 164 | shapecode_1_thickOutline=0 |
| 165 | shapecode_1_textured=0 |
| 166 | shapecode_1_num_inst=1 |
| 167 | shapecode_1_x=0.350 |
| 168 | shapecode_1_y=0.500 |
| 169 | shapecode_1_rad=0.10000 |
| 170 | shapecode_1_ang=0.00000 |
| 171 | shapecode_1_tex_ang=0.00000 |
| 172 | shapecode_1_tex_zoom=1.00000 |
| 173 | shapecode_1_r=1.000 |
| 174 | shapecode_1_g=1.000 |
| 175 | shapecode_1_b=1.000 |
| 176 | shapecode_1_a=1.000 |
| 177 | shapecode_1_r2=0.000 |
| 178 | shapecode_1_g2=0.000 |
| 179 | shapecode_1_b2=0.100 |
| 180 | shapecode_1_a2=0.000 |
| 181 | shapecode_1_border_r=1.000 |
| 182 | shapecode_1_border_g=1.000 |
| 183 | shapecode_1_border_b=1.000 |
| 184 | shapecode_1_border_a=0.000 |
| 185 | shape_1_per_frame1=y=0.1 + q2*0.4; |
| 186 | shape_1_per_frame2=rad=q2/2; |
| 187 | shape_1_per_frame3=ang=-q2*2 |
| 188 | shapecode_2_enabled=0 |
| 189 | shapecode_2_sides=3 |
| 190 | shapecode_2_additive=0 |
| 191 | shapecode_2_thickOutline=0 |
| 192 | shapecode_2_textured=0 |
| 193 | shapecode_2_num_inst=1 |
| 194 | shapecode_2_x=0.590 |
| 195 | shapecode_2_y=0.500 |
| 196 | shapecode_2_rad=0.10000 |
| 197 | shapecode_2_ang=0.00000 |
| 198 | shapecode_2_tex_ang=0.00000 |
| 199 | shapecode_2_tex_zoom=1.00000 |
| 200 | shapecode_2_r=1.000 |
| 201 | shapecode_2_g=0.970 |
| 202 | shapecode_2_b=0.960 |
| 203 | shapecode_2_a=1.000 |
| 204 | shapecode_2_r2=0.100 |
| 205 | shapecode_2_g2=0.050 |
| 206 | shapecode_2_b2=0.000 |
| 207 | shapecode_2_a2=0.000 |
| 208 | shapecode_2_border_r=1.000 |
| 209 | shapecode_2_border_g=1.000 |
| 210 | shapecode_2_border_b=1.000 |
| 211 | shapecode_2_border_a=0.000 |
| 212 | shape_2_per_frame1=y=0.1 + q3*0.4; |
| 213 | shape_2_per_frame2=rad=q3/2; |
| 214 | shape_2_per_frame3=ang=q3*5 |
| 215 | shapecode_3_enabled=1 |
| 216 | shapecode_3_sides=3 |
| 217 | shapecode_3_additive=1 |
| 218 | shapecode_3_thickOutline=0 |
| 219 | shapecode_3_textured=0 |
| 220 | shapecode_3_num_inst=1 |
| 221 | shapecode_3_x=0.840 |
| 222 | shapecode_3_y=0.500 |
| 223 | shapecode_3_rad=0.10000 |
| 224 | shapecode_3_ang=0.00000 |
| 225 | shapecode_3_tex_ang=0.00000 |
| 226 | shapecode_3_tex_zoom=1.00000 |
| 227 | shapecode_3_r=0.980 |
| 228 | shapecode_3_g=1.000 |
| 229 | shapecode_3_b=0.980 |
| 230 | shapecode_3_a=0.300 |
| 231 | shapecode_3_r2=0.000 |
| 232 | shapecode_3_g2=0.090 |
| 233 | shapecode_3_b2=0.000 |
| 234 | shapecode_3_a2=0.000 |
| 235 | shapecode_3_border_r=1.000 |
| 236 | shapecode_3_border_g=1.000 |
| 237 | shapecode_3_border_b=1.000 |
| 238 | shapecode_3_border_a=0.000 |
| 239 | shape_3_per_frame1=x=sin(time/2)*0.4 + 0.5; |
| 240 | shape_3_per_frame2=y=sin(time)*0.4+0.5; |
| 241 | shape_3_per_frame3=rad=(q1*q1)/2;; |
| 242 | shape_3_per_frame4=ang=q1*4; |
| 243 | shape_3_per_frame5= |
| 244 | shape_3_per_frame6=r=0.70 + (sin(time/2))*0.50; |
| 245 | shape_3_per_frame7=g=0.70 + (sin(time/2 + 2)) * 0.50; |
| 246 | shape_3_per_frame8=b=0.70 + (sin(time/2 + 4)) * 0.5 |
| 247 | per_frame_init_1=x1 = 0.9; |
| 248 | per_frame_init_2=y1 = 0.5; |
| 249 | per_frame_init_3= |
| 250 | per_frame_init_4=x2 = 0.5; y2 = 0.5; |
| 251 | per_frame_init_5=x3 = 0.5; y3 = 0.5; |
| 252 | per_frame_init_6=x4 = 0.5; y4 = 0.5; |
| 253 | per_frame_1=zoom = 1; |
| 254 | per_frame_2=warp = 0; |
| 255 | per_frame_3=wave_a = 0; |
| 256 | per_frame_4= |
| 257 | per_frame_5=// elastic thread code |
| 258 | per_frame_6= |
| 259 | per_frame_7=xx1 = xx1*0.9 + (bass)*0.01; |
| 260 | per_frame_8=xx2 = xx2*0.9 + (treb)*0.01; |
| 261 | per_frame_9=yy1 = yy1*0.94 + (treb+bass)*0.0075; |
| 262 | per_frame_10=x1 = 0.5 + (xx1-xx2)*2; |
| 263 | per_frame_11=y1 = 0.4 + yy1*1.5; |
| 264 | per_frame_12=dt = 0.03/fps; |
| 265 | per_frame_13=vx2 = vx2*(1-2*dt) + dt*((x1+x3-2*x2)*10); |
| 266 | per_frame_14=vy2 = vy2*(1-2*dt) + dt*((y1+y3-2*y2)*10-0.5); |
| 267 | per_frame_15=vx3 = vx3*(1-2*dt) + dt*((x2+x4-2*x3)*10); |
| 268 | per_frame_16=vy3 = vy3*(1-2*dt) + dt*((y2+y4-2*y3)*10-0.5); |
| 269 | per_frame_17=vx4 = vx4*(1-2*dt) + dt*((x3-x4)*10); |
| 270 | per_frame_18=vy4 = vy4*(1-2*dt) + dt*((y3-y4)*10-0.5); |
| 271 | per_frame_19=x2 = x2 + vx2; y2 = y2 + vy2; |
| 272 | per_frame_20=x3 = x3 + vx3; y3 = y3 + vy3; |
| 273 | per_frame_21=x4 = x4 + vx4; y4 = y4 + vy4; |
| 274 | per_frame_22=vx2 = if(above(x2,0),vx2,abs(vx2)*0.5); |
| 275 | per_frame_23=vx2 = if(below(x2,1),vx2,-abs(vx2)*0.5); |
| 276 | per_frame_24=vx3 = if(above(x3,0),vx3,abs(vx3)*0.5); |
| 277 | per_frame_25=vx3 = if(below(x3,1),vx3,-abs(vx3)*0.5); |
| 278 | per_frame_26=vx4 = if(above(x4,0),vx4,abs(vx4)*0.5); |
| 279 | per_frame_27=vx4 = if(below(x4,1),vx4,-abs(vx4)*0.5); |
| 280 | per_frame_28=vy2 = if(above(y2,0),vy2,abs(vy2)*0.5); |
| 281 | per_frame_29=vy2 = if(below(y2,1),vy2,-abs(vy2)*0.5); |
| 282 | per_frame_30=vy3 = if(above(y3,0),vy3,abs(vy3)*0.5); |
| 283 | per_frame_31=vy3 = if(below(y3,1),vy3,-abs(vy3)*0.5); |
| 284 | per_frame_32=vy4 = if(above(y4,0),vy4,abs(vy4)*0.5); |
| 285 | per_frame_33=vy4 = if(below(y4,1),vy4,-abs(vy4)*0.5); |
| 286 | per_frame_34=q1 = x1;q2 = x2;q3 = x3;q4 = x4; |
| 287 | per_frame_35=q5 = y1;q6 = y2;q7 = y3;q8 = y4; |
| 288 | per_frame_36=q9 = 1/aspectx; |
| 289 | per_frame_37=q10 = 1/aspecty; |
| 290 | per_frame_38=q11 = aspectx; |
| 291 | per_frame_39=q12 = aspecty; |
| 292 | per_frame_40= |
| 293 | per_frame_41=// coloring borders |
| 294 | per_frame_42=bb = bb*0.99 + bass*0.02; |
| 295 | per_frame_43=mm = mm*0.99 + mid*0.02; |
| 296 | per_frame_44=tt = tt*0.99 + treb*0.02; |
| 297 | per_frame_45= |
| 298 | per_frame_46=mx = max(max(bb,mm),tt); |
| 299 | per_frame_47=mn = min(min(bb,mm),tt); |
| 300 | per_frame_48= |
| 301 | per_frame_49=ob_r = (bb-mn)/(mx-mn); |
| 302 | per_frame_50=ob_b = (mm-mn)/(mx-mn); |
| 303 | per_frame_51=ob_g = (tt-mn)/(mx-mn); |
| 304 | per_frame_52= |
| 305 | per_frame_53=v = 0.4/fps; |
| 306 | per_frame_54=bm = bm + (ob_r-ob_b)*v; |
| 307 | per_frame_55=mt = mt + (ob_b-ob_g)*v; |
| 308 | per_frame_56= |
| 309 | per_frame_57=// coordinates spiral 1 |
| 310 | per_frame_58=q21 = 0.5; // X |
| 311 | per_frame_59=q22 = 0; // Y |
| 312 | per_frame_60= |
| 313 | per_frame_61=// coordinates spiral 2 |
| 314 | per_frame_62=q23 = -0.5; |
| 315 | per_frame_63=q24 = 0; |
| 316 | per_frame_64= |
| 317 | per_frame_65=q25 = 0.5/asin(1); // pi/4 |
| 318 | per_frame_66= |
| 319 | per_frame_67=q26 = -bm; // rotation |
| 320 | per_frame_68=q27 = mt; // growth |
| 321 | per_pixel_1=x = 0.5 + (x-0.5)*q11; |
| 322 | per_pixel_2=y = 0.5 + (y-0.5)*q12; |
| 323 | per_pixel_3=xx = q4; |
| 324 | per_pixel_4=yy = 1-q8; |
| 325 | per_pixel_5= |
| 326 | per_pixel_6=dx = 0; dy = 0; |
| 327 | per_pixel_7= |
| 328 | per_pixel_8=d = sqrt((x-xx)*(x-xx)+(y-yy)*(y-yy)); |
| 329 | per_pixel_9= |
| 330 | per_pixel_10=r = 0.11; |
| 331 | per_pixel_11=v = 20; |
| 332 | per_pixel_12=dx = (v*(sin(y-yy)*(d-r)-(x-xx)*(d-r/2)))*(1.00-sigmoid(d-r,100)); |
| 333 | per_pixel_13=dy = (-v*(sin(x-xx)*(d-r)+(y-yy)*(d-r/2)))*(1.00-sigmoid(d-r,100)); |
| 334 | warp_1=`#define sat saturate |
| 335 | warp_2=`float2 uv1,uv2,uv3, dz, uvpat; |
| 336 | warp_3=`float3 ret1, ret2, uvg; |
| 337 | warp_4=` |
| 338 | warp_5=`float noise3_hq (float2 uvi) { float n1,n2,n3; |
| 339 | warp_6=` n1 = lum(tex2D(sampler_noise_hq, (uvi))); |
| 340 | warp_7=` n2 = lum(tex2D(sampler_noise_hq, (uvi*2))); |
| 341 | warp_8=` n3 = lum(tex2D(sampler_noise_hq, (uvi*4))); |
| 342 | warp_9=` return n1 + n2/2 + n3/4 -.875;} |
| 343 | warp_10=` |
| 344 | warp_11=`float noise3_lq (float2 uvi) { float n1,n2,n3; |
| 345 | warp_12=` n1 = tex2D(sampler_noise_lq, (uvi)).r; |
| 346 | warp_13=` n2 = tex2D(sampler_noise_lq, (uvi*2)).r; |
| 347 | warp_14=` n3 = tex2D(sampler_noise_lq, (uvi*4)).r; |
| 348 | warp_15=` return n1 + n2/2 + n3/4 - .875;} //Soll bipolar sein sonst Hoehenverschiebg |
| 349 | warp_16=` |
| 350 | warp_17=` |
| 351 | warp_18=`shader_body { |
| 352 | warp_19=` |
| 353 | warp_20=`ret = pow(1-2*abs(tex3D (sampler_noisevol_hq,float3(2*uv,time*.1)).r-.5),8)*0.5; |
| 354 | warp_21=` |
| 355 | warp_22=`ret = lerp (ret, GetPixel(uv_orig), 0.9) - 0.004; |
| 356 | warp_23=` |
| 357 | warp_24=`} |
| 358 | warp_25=` |
| 359 | comp_1=`sampler sampler_devboxb; |
| 360 | comp_2=`sampler sampler_suff5; |
| 361 | comp_3=`shader_body |
| 362 | comp_4=`{ |
| 363 | comp_5=`float t = time; // set velocity here |
| 364 | comp_6=`float2 c = (uv-0.5)*aspect.wz; |
| 365 | comp_7=`float1 ang_hq = atan2(c.x,c.y); |
| 366 | comp_8=`float2 spiral = float2(ang_hq*q11*4+t,aspect.w*log(length(c))+ang_hq*q11-t); |
| 367 | comp_9=`//spiral = 0.5 + (0.5 - abs( frac( spiral * 0.5 ) * 2.0 - 1.0 ))*0.83; // mirror |
| 368 | comp_10=`spiral = 0.5 - (0.5 - frac(spiral))*0.866; // mirror |
| 369 | comp_11=`uv = 0.5 + (uv-0.5)*0.88; |
| 370 | comp_12=` ret = tex2D(sampler_main, uv).xyz; |
| 371 | comp_13=` ret *= 1.00; //gamma |
| 372 | comp_14=` ret = lerp(GetPixel(uv).y*float3(0.6,0,0),lerp(1,float3(1,0,0),GetBlur1(uv).y),GetPixel(uv).x*0.6); |
| 373 | comp_15=` ret = lerp(ret,float3(1,0,0),GetPixel(spiral).y*bass*0.5); |
| 374 | comp_16=` ret = lerp(ret,1,GetPixel(spiral).x*treb*0.25); |
| 375 | comp_17=`} |